<?php

namespace Admin\Model;

use Think\Model;

/**
 * Description of AdminModel
 *
 * @author xtceetg
 */
class AdminModel extends Model {

    protected $tableName = "admin";

    public function getByAdminUser($username) {
        return $this->where("username='" . $username . "'")->find();
    }

}
